package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.BaseFlowEntity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by dzw on 2017/12/4.
 * 合同履约登记开票进款
 */
@Entity
@Table(name="ec_performDetail")
public class PerformDetail extends BaseFlowEntity {
    private static final long serialVersionUID = -5430184322637480473L;

    /**
     * 合同履约
     */
    private ContractPerform contractPerform;
    /**
     * 类型 billing 开票  receipts 进款
     */
    private String type;
    /**
     * 日期
     */
    private Date date;
    /**
     * 金额
     */
    private BigDecimal money;

    @ManyToOne(fetch = FetchType.LAZY)
    public ContractPerform getContractPerform() {
        return contractPerform;
    }

    public void setContractPerform(ContractPerform contractPerform) {
        this.contractPerform = contractPerform;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }
}
